//
//  ExchangeViewController.m
//  SDHuiYuShoping
//
//  Created by luojiao on 2017/4/18.
//  Copyright © 2017年 luojiao. All rights reserved.
//

#import "ExchangeViewController.h"

@interface ExchangeViewController ()

@end

@implementation ExchangeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationController.navigationBar.hidden = YES;
    
    //设置返回按钮
    [self.backButton setImage:[UIImage imageNamed:@"back_white_btn"] forState:UIControlStateNormal];
    [self.backButton setImageEdgeInsets:UIEdgeInsetsMake(0, -50, 0, 0)];
    [self.backButton setTitle:@"返回" forState:UIControlStateNormal];
    [self.backButton setTitleEdgeInsets:UIEdgeInsetsMake(0, -40, 0, 0)];
    
    [self setButtonBackground];
    
}

- (void)setButtonBackground
{
    [self.inputTextFiled setBackground:[UIImage imageNamed:@"unchek_bg"]];
    [self.staticButton setImage:[UIImage imageNamed:@"selected_bg"] forState:UIControlStateNormal];
    [self.staticButton setTitle:@"静态基金" forState:UIControlStateNormal];
    [self.staticButton setTitleEdgeInsets:UIEdgeInsetsMake(0, -85, 0, 0)];
    [self.dynamicButton setImage:[UIImage imageNamed:@"unchek_bg"] forState:UIControlStateNormal];
    [self.dynamicButton setTitle:@"动态基金" forState:UIControlStateNormal];
    [self.dynamicButton setTitleEdgeInsets:UIEdgeInsetsMake(0, -85, 0, 0)];

    [self.payButton setImage:[UIImage imageNamed:@"unchek_bg"] forState:UIControlStateNormal];
    [self.payButton setTitle:@"支付宝" forState:UIControlStateNormal];
    [self.payButton setTitleEdgeInsets:UIEdgeInsetsMake(0, -80, 0, 0)];

    [self.goPayButton setImage:[UIImage imageNamed:@"buy_bg"] forState:UIControlStateNormal];
    [self.goPayButton setTitle:@"购买" forState:UIControlStateNormal];
    [self.goPayButton setTitleEdgeInsets:UIEdgeInsetsMake(0, -250, 0, 0)];
    [self.goPayButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];

    
    
}

#pragma mark - ButtonClick

- (IBAction)backButton:(id)sender{
    
    [self.navigationController popViewControllerAnimated:YES];
}
- (IBAction)staticButton:(id)sender {
}
- (IBAction)dynamicButton:(id)sender {
}
- (IBAction)payButton:(id)sender {
}

- (IBAction)goPayButton:(id)sender {
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
